<?php

function CheckSession($url)
{
   session_start();
   $userId=$_SESSION['userID'];
   if($userId==null || $userId=="")
   {
	
	  /*echo "<script language='javascript'>"; 
      echo " window.location.href='http://localhost/helpSite/user/checkSession.php'"; 
      echo "</script>";*/
	  echo "您尚未登录，请您先登录<br>";
	  return false;
   }
   return true;
}
?>